home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Macintosh / Development & Resource Tools / ROM Sucker.sit / ROM Sucker / globincs / ROM_Sucker_bss.def next >
Text File  |  1998-01-04  |  5KB  |  159 lines

  1. *  global definitions for ROM Sucker
  2.  
  3. *  global stuff goes in BSS
  4. qd:                    rs.b    208        ;208 bytes for QuickDraw globals
  5. WindowPtr:            rs.w    1    ;window #1 pointer
  6. GDHandle:            rs.w    1    ;handle of main video device
  7. DialogPtr:            rs.w    1    ;ptr to dialog window
  8. OldPort:            rs.w    1    ;ptr to old port if DA is open
  9. VScrollHandle:        rs.w    1    ;handle to vertical scroll bar
  10. MBARHandle:            rs.w    1    ;handle to the menu bar
  11. AppleMenuHandle:    rs.w    1    ;handle to Apple menu
  12. EditMenuHandle:        rs.w    1    ;handle to Edit menu
  13. OptionMenuHandle:    rs.w    1    ;handle to Options menu
  14. TEHandle:            rs.w    1    ;handle to TextEdit record
  15. RsrcHandle:            rs.w    1    ;handle to ROM resource
  16. NewRsrcHandle:        rs.w    1    ;handle to ROM resource we’re copying into rsrc file
  17. whichWindow:        rs.w    1    ;used to find mouse position after a mousedown
  18. CtrlHandle:            rs.w    1    ;VAR for FindControl
  19. acurHandle:            rs.w    1    ;I-8-21: handle to acur record
  20. CursorHandles:        rs.w    10    ;handles for a bunch of cursors
  21. FontInfo:            rs.h    4    ;T-3-66: FontInfo data record
  22. theEvent:            rs.b    16    ;I-249: event record
  23. MousePt:            rs.w    1    ;local mouse position
  24. MenuResult:            rs.w    1    ;menusID:ItemID from MenuSelect
  25. boundsRect:            rs.h    4    ;bounds rectangle for DragWindow
  26. sizeRect:            rs.h    4    ;size rectangle for GrowWindow
  27. textRect:            rs.h    4    ;rectangle to display text in for TETextBox
  28. RsrcName:            rs.b    256    ;str255: for resource name string
  29. String:                rs.b    20    ;will become one line displayed in the window
  30. theString:            rs.b    12    ;VAR for NumToString (10 digits + sign + length)
  31. itemString:            rs.b    16    ;length of DA name + 1
  32. HParamBlkPtr:        rs.b    124    ;parameter block record for File Manager calls
  33. finalTicks:            rs.w    1    ;VAR for Delay (much much better than $0E80)
  34. theType:            rs.w    1
  35. *  non-aligned:
  36. itemType:            rs.h    1    ;item type for dialogs
  37. theID:                rs.h    1
  38. partCode:            rs.h    1    ;from FindWindow -- used for zooming
  39. NormalScroll:        rs.h    1    ;used to flag normal vs. smooth scrolling
  40. DARefNum:            rs.h    1    ;DA refNum: use as a flag that a DA is open
  41. MyCaretTime:        rs.h    1    ;caret blinking interval in ticks
  42. ResFileNumber:        rs.h    1    ;rsrc file refNum
  43.  
  44.  
  45.     IMPORT    AddResource            ;MT-1-90
  46.     IMPORT    AppendResMenu        ;TE-3-128
  47.     IMPORT    BeginUpdate            ;TE-4-106
  48.     IMPORT    Button                ;TE-2-108
  49.     IMPORT    CheckItem            ;TE-3-136
  50.     IMPORT    CloseResFile        ;MT-1-110
  51.     IMPORT    CountResources
  52.     IMPORT    Delay                ;II-284 (doesn’t seem to be in new Inside Macintosh)
  53.     IMPORT    DetachResource        ;MT-1-108
  54.     IMPORT    DisableItem            ;TE-3-131
  55.     IMPORT    DisposeDialog        ;TE-6-120
  56.     IMPORT    DragWindow            ;TE-4-94
  57.     IMPORT    Draw1Control        ;TE-5-88
  58.     IMPORT    DrawControls
  59.     IMPORT    DrawGrowIcon        ;TE-4-86
  60.     IMPORT    DrawMenuBar            ;TE-3-113
  61.     IMPORT    EnableItem            ;TE-3-131
  62.     IMPORT    EndUpdate            ;TE-4-107
  63.     IMPORT    EraseRect            ;I-3-61
  64.     IMPORT    ExitToShell
  65.     IMPORT    FindControl            ;TE-5-89
  66.     IMPORT    FindWindow            ;TE-4-91
  67.     IMPORT    FlushEvents            ;TE-2-93
  68.     IMPORT    GetCaretTime        ;TE-2-113
  69.     IMPORT    GetControlMaximum    ;TE-5-104
  70.     IMPORT    GetControlValue        ;TE-5-103
  71.     IMPORT    GetCursor            ;I-8-24
  72.     IMPORT    GetDialogItem        ;TE-6-121
  73.     IMPORT    GetFontInfo            ;T-3-75
  74.     IMPORT    GetGrayRgn            ;TE-4-113
  75.     IMPORT    GetIndResource
  76.     IMPORT    GetMainDevice        ;I-5-27
  77.     IMPORT    GetMenuItemText        ;TE-3-132
  78.     IMPORT    GetMenuHandle        ;TE-3-122
  79.     IMPORT    GetMouse            ;TE-2-108
  80.     IMPORT    GetNewControl        ;TE-5-81
  81.     IMPORT    GetNewCWindow        ;TE-4-76
  82.     IMPORT    GetNewDialog        ;TE-6-113
  83.     IMPORT    GetNewMBar            ;TE-3-111
  84.     IMPORT    GetPort                ;I-2-41
  85.     IMPORT    GetResInfo
  86.     IMPORT    GetResource            ;MT-1-73
  87.     IMPORT    GrowWindow            ;TE-4-100
  88.     IMPORT    HandToHand            ;M-2-62
  89.     IMPORT    HCreateResFile        ;MT-1-56
  90.     IMPORT    HDelete
  91.     IMPORT    HiliteControl        ;TE-5-98
  92.     IMPORT    HiliteMenu            ;TE-3-119
  93.     IMPORT    HLock                ;M-2-45
  94.     IMPORT    HOpenResFile        ;MT-1-62
  95.     IMPORT    HPurge                ;M-2-47
  96.     IMPORT    HUnlock                ;M-2-46
  97.     IMPORT    InitCursor            ;I-8-22
  98.     IMPORT    InitDialogs            ;TE-6-103
  99.     IMPORT    InitFonts            ;T-4-51
  100.     IMPORT    InitGraf            ;I-2-36
  101.     IMPORT    InitMenus            ;TE-3-103
  102.     IMPORT    InitWindows            ;TE-4-75
  103.     IMPORT    InvalRect            ;TE-4-107
  104.     IMPORT    HomeResFile
  105.     IMPORT    LoadResource
  106.     IMPORT    MenuKey                ;TE-3-117
  107.     IMPORT    MenuSelect            ;TE-3-115
  108.     IMPORT    MoveControl            ;TE-5-97
  109.     IMPORT    MoveWindow            ;TE-4-95
  110.     IMPORT    OpenDeskAcc            ;D-1-65
  111.     IMPORT    PBHDeleteSync        ;F-2-174
  112.     IMPORT    PBHGetFInfoSync        ;F-2-194
  113.     IMPORT    PBHSetFInfoSync        ;F-2-195
  114.     IMPORT    ReleaseResource        ;MT-1-107
  115.     IMPORT    RotateCursor        ;I-8-32
  116.     IMPORT    SetControlMaximum    ;TE-5-95
  117.     IMPORT    SetControlMinimum    ;TE-5-95
  118.     IMPORT    SetControlValue        ;TE-5-94
  119.     IMPORT    SetCursor            ;I-8-25
  120.     IMPORT    SetDialogFont        ;TE-6-105
  121.     IMPORT    SetMenuBar            ;TE-3-112
  122.      IMPORT    SetPort                ;I-2-42
  123.     IMPORT    SetResLoad            ;MT-1-79
  124.     IMPORT    ShowControl            ;TE-5-86
  125.     IMPORT    ShowWindow            ;TE-4-88
  126.     IMPORT    SizeControl            ;TE-5-98
  127.     IMPORT    SizeWindow            ;TE-4-101
  128.     IMPORT    SpinCursor            ;I-8-32
  129.     IMPORT    SystemClick            ;TE-2-94
  130.     IMPORT    SystemEdit            ;TE-3-122
  131.     IMPORT    TEActivate
  132.     IMPORT    TECalText            ;T-2-89
  133.     IMPORT    TEClick
  134.     IMPORT    TECopy                ;T-2-95
  135.     IMPORT    TECut                ;T-2-94
  136.     IMPORT    TEDeactivate
  137.     IMPORT    TEDelete            ;T-2-93
  138.     IMPORT    TEIdle
  139.     IMPORT    TEInit                ;T-2-77
  140.     IMPORT    TEInsert            ;T-2-94
  141.     IMPORT    TENew                ;T-2-78
  142.     IMPORT    TEPaste                ;T-2-95
  143.     IMPORT    TEScroll            ;T-2-91
  144.     IMPORT    TestControl            ;TE-5-93
  145.     IMPORT    TETextBox            ;T-2-88
  146.     IMPORT    TEUpdate            ;T-2-88
  147.     IMPORT    TextFace            ;T-3-69
  148.     IMPORT    TextFont            ;T-3-69
  149.     IMPORT    TextMode            ;T-3-70
  150.     IMPORT    TextSize            ;T-3-73
  151.     IMPORT    TrackBox            ;TE-4-101
  152.     IMPORT    TrackControl        ;TE-5-90
  153.     IMPORT    TrackGoAway            ;TE-4-103
  154.     IMPORT    UpdateResFile        ;MT-1-92
  155.     IMPORT    UseResFile            ;MT-1-69
  156.     IMPORT    WaitNextEvent        ;TE-2-85
  157.     IMPORT    ZoomWindow            ;TE-4-102
  158.  
  159.